//
//  PKrotView.m
//  PianKe
//
//  Created by mingtao on 15/9/26.
//  Copyright (c) 2015年 mingtao. All rights reserved.
//

#import "PKrotView.h"

@implementation PKrotView




-(id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        //个人头像
        _butiamge = [UIButton buttonWithType:(UIButtonTypeSystem)];
    
        _butiamge.frame=CGRectMake(15, 25, 55, 55);
        
        _butiamge.backgroundColor = [UIColor colorWithRed:1.000 green:0.704 blue:0.354 alpha:1.000];
        
       // _butiamge.layer.masksToBounds = YES;
        
    //    _butiamge.layer.cornerRadius =50;// HHIHEI-637/2;
      //设置按钮图片
   // [_butiamge setImage:[UIImage imageNamed:@"iconfont-touxiang"] forState:UIControlStateSelected];
        [_butiamge.layer setCornerRadius:27.5];
        
        [self addSubview:_butiamge];
        //登陆按钮
        
        _butlogin = [UIButton buttonWithType:(UIButtonTypeSystem)];
        
        _butlogin.frame = CGRectMake(WIHES-295+20,40,WIHES/2-137.5 ,HHIHEI-637);
        
        _butlogin.backgroundColor = [UIColor colorWithRed:1.000 green:0.588 blue:0.108 alpha:1.000];
        
        [self addSubview:_butlogin];
        //注册
        _butregister=[UIButton buttonWithType:(UIButtonTypeSystem)];
        _butregister.frame = CGRectMake(WIHES-295+80, 40, WIHES/2-137.5, HHIHEI-637);
        
        _butregister.backgroundColor = [UIColor colorWithRed:1.000 green:0.704 blue:0.354 alpha:1.000];
        
        [self addSubview:_butregister];
        
        //下载
        _butdownload = [UIButton buttonWithType:(UIButtonTypeSystem)];
        _butdownload.frame = CGRectMake(25, 100, WIHES/2-137.5, HHIHEI-637);
        
        _butdownload.backgroundColor = [UIColor colorWithRed:1.000 green:0.289 blue:0.653 alpha:1.000];
        
        [self addSubview:_butdownload];
        
        //收藏
        _butcollect = [UIButton buttonWithType:(UIButtonTypeSystem)];
        _butcollect.frame = CGRectMake(WIHES-295+25, 100, WIHES/2-137.5, HHIHEI-637);
        
        _butcollect.backgroundColor = [UIColor colorWithRed:1.000 green:0.289 blue:0.653 alpha:1.000];
        
        [self addSubview:_butcollect];
        
        //留言
        _butmessage = [UIButton buttonWithType:(UIButtonTypeSystem)];
        _butmessage.frame = CGRectMake(WIHES-295+115, 100, WIHES/2-137.5, HHIHEI-637);
        
        _butmessage.backgroundColor = [UIColor colorWithRed:1.000 green:0.289 blue:0.653 alpha:1.000];
        
        [self addSubview:_butmessage];
        
        //一支笔协助
        _butassist = [UIButton buttonWithType:(UIButtonTypeSystem)];
        _butassist.frame = CGRectMake(WIHES-295+208, 100, WIHES/2-137.5, HHIHEI-637);
        
        _butassist.backgroundColor = [UIColor colorWithRed:1.000 green:0.289 blue:0.653 alpha:1.000];
        
        [self addSubview:_butassist];
//
        
    }
    return self;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
